package com.yunban.project.message.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: lijiajun
 * @date: 2025-03-07
 * @version: 1.0
 */
@Data
@TableName
@Schema(description = "短信记录")
public class SmsRecord implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String phoneNo;
    private String code;
    private String message;
    private boolean used = false;
    private LocalDateTime expiredAt;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastModifiedAt;
}